package com.xuhuan.practice.dto.category;

import com.xuhuan.practice.dto.common.BaseDTO;
import com.xuhuan.practice.validator.group.AddGroup;
import com.xuhuan.practice.validator.group.UpdateGroup;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * @author: huan.xu
 * @create: 2024/6/13 22:31
 * @description: 文章分类管理dto
 **/
@Data
public class CategoryInfoDTO extends BaseDTO {

  @NotEmpty(groups = {AddGroup.class, UpdateGroup.class})
  private String categoryName;

  @NotEmpty(groups = {AddGroup.class, UpdateGroup.class})
  private String categoryAlias;

  private Integer createUser;
}
